package com.gjl.common.core.domain.model.response;

import java.util.List;

/**
 * @ClassName : WxLoginResponse
 * @Description : TODO
 * @Author : liuhui.jiao
 * @Date: 2025/11/13 23:16
 */
public class WxLoginResponse {

//     "openid":"唯一标识",
//             "realName":"姓名",
//             "age":1,
//             "phonenumber":"手机号",
//             "sex":1,
//             "avatar":"头像",
//             "profession":"职业",
//             "idCard":"身份证号",
//             "deptName":"医院",
//             "keepMedicine":13,
//             "roleNum":"角色数量",
//             "role":[
//    {
//        "roleId":"角色id",
//            "roleName":"角色名称"
//    }
//  ]

    private Long userId;

    private String openId;

    private String token;

    private String realName;

    private Integer age;

    private String phonenumber;

    private Integer sex;

    private String avatar;

    private String profession;

    private String idCard;

    private String deptName;

    private Integer keepMedicine;

    private Integer roleNum;

    private List<Role> role;

    public static class Role{
        private Long roleId;
        private String roleName;
        private String roleKey;
        public Role() {
        }
        public Role(Long roleId, String roleName, String roleKey) {
            this.roleId = roleId;
            this.roleName = roleName;
            this.roleKey = roleKey;
        }

        public Long getRoleId() {
            return roleId;
        }
        public void setRoleId(Long roleId) {
            this.roleId = roleId;
        }
        public String getRoleName() {
            return roleName;
        }
        public void setRoleName(String roleName) {
            this.roleName = roleName;
        }

        public String getRoleKey() {
            return roleKey;
        }

        public void setRoleKey(String roleKey) {
            this.roleKey = roleKey;
        }
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getProfession() {
        return profession;
    }

    public void setProfession(String profession) {
        this.profession = profession;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Integer getKeepMedicine() {
        return keepMedicine;
    }

    public void setKeepMedicine(Integer keepMedicine) {
        this.keepMedicine = keepMedicine;
    }

    public Integer getRoleNum() {
        return roleNum;
    }

    public void setRoleNum(Integer roleNum) {
        this.roleNum = roleNum;
    }

    public List<Role> getRole() {
        return role;
    }

    public void setRole(List<Role> role) {
        this.role = role;
    }
}
